package com.service.system.service;

import com.service.common.core.domain.entity.SysUser;
import com.service.common.core.domain.entity.TbUser;
import com.service.system.mapper.TbUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysUserListService {
    @Autowired
    private TbUserMapper tbUserMapper;

    public List<SysUser> selectUserList(TbUser user) {
        return tbUserMapper.selectUserList(user);
    }

    public int updateUser(TbUser user) {

        return tbUserMapper.updatetUserList(user);
    }

    public TbUser selectTbUser(int id) {

        return tbUserMapper.selectUserById(id);
    }

    public int deleteUserByIds(Long[] userIds) {
        return tbUserMapper.delectUserById(userIds);
    }
}
